<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box{
      width:200px;
      height:200px;
      background: rgb(194, 161, 161);
    }
		.box2{
			width:200px;
      height:200px;
      background: rgb(112, 160, 24);
		}
		.box3{
			width:200px;
      height:200px;
      background: rgb(204, 123, 17);
		}
  </style>
</head>
<body>
  <div id="app">
		<button @click="num++">改变</button>
		<!-- <button @click="change">改变</button> -->
		<div class="box" v-if="num%3==0">box1</div>
		<div class="box3" v-else-if="num%3==1">box3</div>
		<div class="box2" v-else>box2</div>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
				num: 0
			},
			// methods: {
			// 	fn () {
			// 		this.isShow = !this.isShow
			// 	}
			// }
    })
  </script>
</body>
</html>
